package net;

import message.StatusNotification;

import comunity.Status;
import comunity.UserData;

public class StatusNotificationSender extends Sender {

	private StatusNotificationSender(StatusNotification statusNotification) {
		super(statusNotification);
	}

	@Override
	void handleResponse(int response) {

	}
	
	public static void sendStatusNotification(){
		UserData userData = UserData.obtainUserData();
		Status status = userData.getStatus();
		String owner = userData.getUsername();
		int clientInputPort = OlivawPortsClient.getInputPort();
		
		StatusNotification statusNotification = new StatusNotification("", owner, status.toString(), clientInputPort, -1, -1);
		new Thread(new StatusNotificationSender(statusNotification)).start();
	}

}
